#import "FoursquareVenueAnnotation.h"

/**
 * A FoursquareVenueAnnotation is a single venue in the Foursquare
 * system represented as a map annotation for an MKMapView. 
 * 
 * @author      James Lin
 * @version     2.1.2
 * @since       2.1.2
 * @see         AddressAnnotation
 */
@implementation FoursquareVenueAnnotation

@synthesize venueInfo; // Info for the venue

/**
 * Initialize the Foursquare venue annotation.
 *
 * @param venue  the Foursquare venue
 * @return       the initialized Foursquare venue annotation
 */
- (id)initWithVenue:(FoursquareVenue*)venue {
	if (self = [super initWithType:AnnotationTypeFoursquareVenue]) {
		self.venueInfo = venue;
		[super setCoordinate:venue.venueLocation];
		[super setTitle:venue.venueName];
		[super setSubtitle:venue.venueCategory];
	}
	
	return self;
}

/**
 * Deallocate the Foursquare venue annotation.
 */
- (void)dealloc {
	[venueInfo release], venueInfo = nil;
	[super dealloc];
}

@end
